home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ RIVA TNT 4.xpl < prev    next >
Text File  |  1999-10-16  |  2KB  |  100 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\Riva TNT"
  5. "NAME"="Windows NT/2000 Settings"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable HW Curve"
  9. "TEXT 2"="Enable Stretch Interpolation"
  10. "DESCRIPTION 1"="If HW Curve is *DISABLED*, it turns off GDI hardware acceleration for curve drawing. If you *DISABLE* this option, hardware acceleration will be bypassed and force your card to use Windows NT/2000 for rendering circles, ellipses, arcs etc."
  11. "DESCRIPTION 2"="If Stretch Interpolation is *DISABLED* it prevents pixel interpolation of stretched bitmap images. *DISABLE* this option if you do not want Windows NT/2000 to smoothen bitmaps when they are enlarged."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15. "COMMENT 2"="Thanks to CptSiskoX!"
  16.  
  17.  
  18. sPC="HKLM\SOFTWARE\NVIDIA Corporation\Riva TNT\"
  19. sV1="HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation\RIVA TNT\Display\DisableHWCurve" 'DW 
  20. sV2="HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation\RIVA TNT\Display\NoStretchBltInterpolate" 'DW
  21. Sub Plugin_Initialize 
  22. If (GetWinVer=2 or GetWinVer=4) and RegPathExists(sPC) then
  23.    i=RegReadValue(sV1)
  24.    if i=0 then SetUiElement 1,true
  25.  
  26.    i=RegReadValue(sV2)
  27.    if i=0 then SetUiElement 2,true
  28.  
  29.    'i=RegReadValue(sV3)
  30.    'if i=1 then SetUiElement 3,true
  31.  
  32.    'i=RegReadValue(sV4)
  33.    'if i=0 and IsEmpty(i)=false then SetUiElement 4,true
  34.  
  35.    'i=RegReadValue(sV5)
  36.    'if i=0 or IsEmpty(i)=true then SetUiElement 5,true
  37. else
  38.    Call Disable()
  39. end if  
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_CheckData(ElementIndex)
  44. End Sub
  45.  
  46.  
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  b=GetUIElement(1)
  50.  if b=true then
  51.     i=0
  52.  else
  53.     i=1
  54.  end if
  55.  Call RegWriteValue(sV1,i,2)
  56.  
  57.  b=GetUIElement(2)
  58.  if b=true then
  59.     i=0
  60.  else
  61.     i=1
  62.  end if
  63.  Call RegWriteValue(sV2,i,2)
  64.  
  65. ' b=GetUIElement(3)
  66. ' if b=true then
  67. '    i=1
  68. ' else
  69. '    i=0
  70. ' end if
  71. ' Call RegWriteValue(sV3,i,2)
  72.  
  73. ' b=GetUIElement(4)
  74. ' if b=true then
  75. '    i=0
  76. ' else
  77. '    i=1
  78. ' end if
  79. ' Call RegWriteValue(sV4,i,2)
  80.  
  81.  
  82. ' b=GetUIElement(5)
  83. ' if b=true then
  84. '    i=0
  85. ' else
  86. '    i=1
  87. ' end if
  88. ' Call RegWriteValue(sV5,i,2)
  89.  
  90.  
  91.  Call Restart()
  92. End Sub
  93.  
  94.  
  95. Sub Plugin_Terminate 
  96. End Sub
  97.  
  98.  
  99.  
  100.